package com.cskaoyan.mapper;

import com.cskaoyan.bean.pojo.MallGoods;
import com.cskaoyan.bean.pojo.MallGoodsExample;
import com.cskaoyan.bean.vo.HomeHotGoodsListVO;
import com.cskaoyan.bean.vo.HomeNewGoodsListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MallGoodsMapper {
    long countByExample(MallGoodsExample example);

    int deleteByExample(MallGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MallGoods record);

    int insertSelective(MallGoods record);

    List<MallGoods> selectByExampleWithBLOBs(MallGoodsExample example);

    List<MallGoods> selectByExample(MallGoodsExample example);

    MallGoods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MallGoods record, @Param("example") MallGoodsExample example);

    int updateByExampleWithBLOBs(@Param("record") MallGoods record, @Param("example") MallGoodsExample example);

    int updateByExample(@Param("record") MallGoods record, @Param("example") MallGoodsExample example);

    int updateByPrimaryKeySelective(MallGoods record);

    int updateByPrimaryKeyWithBLOBs(MallGoods record);

    int updateByPrimaryKey(MallGoods record);

    List<HomeNewGoodsListVO> selectNewGoodsListVOByLimit6(int indexNew);

    List<HomeHotGoodsListVO> selectHotGoodsListVOByLimit6(Integer indexHot);

    int selectPidById(Integer id);
}